<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
<title><?php echo ($title); ?>吉林出入境检验检疫局</title>
<link href="/Home/css/style.css?<?php echo rand();?>" rel="stylesheet" type="text/css" />
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
<script src="/Home/js/layer/layer.js"></script>
<script src="/Home/js/main.js"></script>

<!--弹出框-->
<script>
    function hh()
    {
        layer.open({
            type: 2,
            title: '管理员登录',
            shadeClose: true,
            shade: 0.8,
            area: ['390px', '340px'],
            content: '/admin.php' //iframe的url
        });
    }
</script>
<!--//弹出框-->

    <style>
        .status{
            display: inline !important;
        }
        .status-0{
            color: #f8ac59 !important;
        }
        .status-1{
            color: #1ab394 !important;
        }
        .status-2{
            color: #a71d1d !important;
        }
    </style>
</head>
<body>
<!-- 头部 -->
<!--<div class="top">-->
    <!--<div class="top_nr">-->
        <!--<div class="l">让更多学生享受优质的教育资源，为更多家庭提供超值的教育服务！</div>-->
        <!--<div class="r">-->
			<!--<?php if(UID > 0): ?>-->
				<!--<a  class="white" style="margin-right:10px;" href="/admin.php" target="_blank"><i><img src="/Home/images/home.png"></i> 管理后台</a>-->
			<!--<?php else: ?>-->
				<!--<a  class="white" style="margin-right:10px;" href="javascript:;" onclick="hh()"><i><img src="/Home/images/home.png"></i> 管理员登录</a>-->
			<!--<?php endif; ?>-->
            <!--<a href="#"class="white"><i><img src="/Home/images/coll.png"></i> 收藏本站</a>-->
        <!--</div>-->
    <!--</div>-->
<!--</div>-->


    <div class="header">
        <div class="logo"><img src="/Home/images/logo_03.png"></div>
        <div class="search">
            <div class="search_l" >
                <form id="searchform" action="<?php echo U('Item/index');?>" method="get">
                    <div class="form-group">
                        <!--<select class="form-contro2">-->
                            <!--<?php if(is_array($districts)): $i = 0; $__LIST__ = $districts;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$info): $mod = ($i % 2 );++$i;?>-->
                                <!--<option value="<?php echo ($info["id"]); ?>" <?php if($info['id'] == I('get.did')): ?>selected="selected"<?php endif; ?>><?php echo ($info["title"]); ?></option>-->
                            <!--<?php endforeach; endif; else: echo "" ;endif; ?>-->
                            <!--&lt;!&ndash;<option value=""  <?php if(0 == I('get.did',0)): ?>selected="selected"<?php endif; ?>>全部分类</option>&ndash;&gt;-->
                        <!--</select>-->
                    </div>
                    <div class="form-group">
                        <input type="text" name="key" class="form-control" id="exampleInputEmail1" placeholder="请输入文档名称..." value="<?php echo I('get.key','');?>">
                    </div>
                </form>
            </div>
            <div class="search_r"><a href="#"></a></div>
        </div>
    </div>


<!-- /头部 -->

<!-- 主体 -->


    <div class="sub_title"></div>
    <div class="con">
        <div class="new" style="height: 368px;">
            <div class="title">
                <div class="more"><a href="<?php echo U('Item/index');?>" target="_blank">+ MORE</a></div>
                <h3>重要文档</h3>
            </div>
            <div class="new_nr" style="overflow:hidden;">
                <ul id="itemsul">
                    <?php $__POSLIST__ = D('Item')->position(1,C('POSITION_INDEX_ROWS'),true)->getLists(); if(is_array($__POSLIST__)): $i = 0; $__LIST__ = $__POSLIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$info): $mod = ($i % 2 );++$i;?><li><span><?php echo ($info["district"]); ?></span><a href="<?php echo U('Item/detail',array('id'=>$info['id']));?>" target="_blank"><?php echo ($info["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
        </div>
    </div>
    <script language="javascript">
        function startmarquee(lh,speed,delay) {
            var p=false;
            var t;
            var o=document.getElementById("itemsul");
            o.innerHTML+=o.innerHTML;
            o.style.marginTop=0;
            o.onmouseover=function(){p=true;};
            o.onmouseout=function(){p=false;};

            function start(){
                t=setInterval(scrolling,speed);
                if(!p) o.style.marginTop=parseInt(o.style.marginTop)-1+"px";
            }

            function scrolling(){
                if(parseInt(o.style.marginTop)%lh!=0){
                    o.style.marginTop=parseInt(o.style.marginTop)-1+"px";
                    if(Math.abs(parseInt(o.style.marginTop))>=o.scrollHeight/2) o.style.marginTop=0;
                }else{
                    clearInterval(t);
                    setTimeout(start,delay);
                }
            }

            setTimeout(start,delay);
        }

        startmarquee(40,20,1500);
        function a(){
            console.log('a');
        }
        function b(){
            a();
        }
        a();
    </script>

<!-- /主体 -->

<!-- 底部 -->
<!--<div class="footer">-->
    <!--Coryright © 延边州教育局 <?php echo C('WEB_SITE_ICP');?><br><span style="color:#999;">技术支持：<a  style="color:#999;" href="http://www.huiyouzan.com" target="_blank" title="汇友科技">汇友科技</a> 网站运维电话：<?php echo C('PHONE');?></span> </br>-->
    <!---->
<!--</div>-->

<!-- /底部 -->
</body>
</html>